The exact solution depends on how the dialogs are constructed, but what I would do is to add an extra class to one or both of the dialogs and add that class to the CSS file with the correct background color. Depending on the order the CSS files are loaded you might have to add the !important declaration to the background color definition.
Adding the extra class can be accomplished using the dojo.addClass method.
Mark